import { default as request, cloud } from '@/framework/utils/request'
// 查询困难党员页面列表
const getDifficultPartyMemberList = (params) => request({ url: cloud.dqbasic + '/difficultPartyMember/page', method: 'get', params })
// 查询党组织树
const getOrganizationTree = (params) => request({ url: cloud.dqbasic + '/hrOrganization/currentTree', method: 'get', params })
// 导出文件
const exportPartyMember = (params) => request({ url: cloud.dqbasic + '/partyMember/excelExport', method: 'post', data: params, responseType: 'blob' })
// 删除困难党员
const deleteDifficultPartyMember = (params) => request({ url: cloud.dqbasic + '/difficultPartyMember/delete', method: 'post', data: params })
// 添加困难党员
const addDifficultPartyMember = (params) => request({ url: cloud.dqbasic + '/difficultPartyMember/add', method: 'post', data: params })
// 编辑困难党员
const updateDifficultPartyMember = (params) => request({ url: cloud.dqbasic + '/difficultPartyMember/update', method: 'post', data: params })
// 困难党员详情
const getDifficultPartyMemberDetail = (params) => request({ url: cloud.dqbasic + '/difficultPartyMember/detail', method: 'get', params })
// 导入文件
// const getPartyMemberList = (params) => request({ url: '/partyMember/excelImport', method: 'get', params })
// 模板下载
const editPartyMember = (params) => request({ url: cloud.dqbasic + '/sysNotice/edit', method: 'post', data: params })
export {
  addDifficultPartyMember,
  updateDifficultPartyMember,
  getDifficultPartyMemberList,
  getOrganizationTree,
  exportPartyMember,
  deleteDifficultPartyMember,
  getDifficultPartyMemberDetail,
  editPartyMember
}
